package models

import (
	// "fmt"

	// "Web-Shop/modules/utils"

	"github.com/astaxie/beego/orm"	
)

func (m *IndexGoodsBanner)ReadForHome()(IndexGoodsBanners []*IndexGoodsBanner,err error) {
	if _,err=orm.NewOrm().QueryTable("IndexGoodsBanner").OrderBy("Index").All(&IndexGoodsBanners);err!=nil{
		return IndexGoodsBanners,err
	}
	return IndexGoodsBanners,nil
}